package com.freesky.biz.activity.service;

import com.freesky.biz.activity.domain.TActivityConfig;
import com.freesky.biz.activity.domain.TActivityConfigRules;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务配置 服务层
 *
 * @author freesky
 */
public interface IActivityConfigService {

    public TActivityConfig get(String id);

    public List<TActivityConfig> findList(TActivityConfig entity);

    public int insert(TActivityConfig entity);

    public int update(TActivityConfig entity);

    public int deleteByIds(String[] ids);


    //规则
    public int addActivityRules(TActivityConfigRules activityRulesModel);

    public int updateActivityRules(TActivityConfigRules activityRulesModel);

    public TActivityConfigRules getActivityRulesById(@Param("id") String id);

    public List<TActivityConfigRules> getActivityRulesByActivityId(@Param("activityId") String activityId);

    public int deleteActivityRulesById(@Param("id") String id);


}
